/*
 * OLED_drives.h
 *
 *  Created on: 2021年8月12日
 *      Author: EE
 */

#ifndef INC_OLED_DRIVES_H_
#define INC_OLED_DRIVES_H_
#include "i2c.h"
#include "stm32f1xx_hal.h"

void OLED_Init(void);
void OLED_PageClear(uint8_t Page);
void OLED_Clear(void);
void SetCurSorAddress(uint8_t x, uint8_t y);
void OLED_Address(uint8_t row, uint8_t col);
void DisplayString(uint8_t x, uint8_t y, uint8_t width, uint8_t height,
		uint8_t *Str);
void OLED_ShowChar(uint8_t x, uint8_t y, uint8_t chr, uint8_t CharSize);
void ShowString(uint8_t x, uint8_t y, uint8_t *Str, uint8_t CharSize);

void DisPlayChar(uint8_t Page, uint8_t col, char Ch);
void Oled_Display_String(uint8_t page, uint8_t col, char *str);

#endif /* INC_OLED_DRIVES_H_ */
